<?php

class BlogCategoryAction extends BaseAction {
	
	public function index() {
		$d_blog_category = D('BlogCategory');
		$blog_category_list = $d_blog_category->select();
		$this->assign('blog_category_list',$blog_category_list);
		$this->display("Index:blog_category");
	}
	
	public function addBlogCategory(){
		$pd = $_POST;
		$d_blog_category = D('BlogCategory');
		$d_blog_category->add($pd);
		$this->ajaxReturn('ok',$pd,1);
	}
}
?>